local M={}

function M:Awake()
    self.as=self.GameObject:GetComponent(Alice.AudioSource)
    self.as:SetAudioClip("Audio/SwomeeSwan.mp3")
    self.as:Play()
    self.play=true
    self.time=0
end

function M:Update(delta)
    self.time=self.time+delta
    if self.play then
        if self.time > 10 then
            self.play=false
            self.as:Stop()
        end
    end
end
return M